/*
* @author dumeng
*/
'use strict'
import request from '@/utils/request'

/**
 * 字典
 */
export function getDictByCode(dictCode) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysDictionary/getDictByCode',
    method: 'POST',
    data: { dictCode }
  })
}

/**
 * 列表查询
 */
export function queryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/groupAudit/queryPage',
    method: 'post',
    data
  })
}

export function audit(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/groupAudit/groupAudit',
    method: 'post',
    data
  })
}

/**
 * 详情
 */
export function get(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/groupAudit/get',
    method: 'post',
    data
  })
}
/**
 * 脱敏导出人员信息
 * @param {*} data
 */
export function exportUserMaskApi(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/interestGroupUser/groupUserMaskingExport',
    method: 'post',
    responseType: 'blob',
    data
  })
}
/**
 * 不脱敏导出人员信息
 * @param {*} data
 */
export function exportUserNoMaskApi(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/interestGroupUser/groupUserNoMaskingExport',
    method: 'post',
    responseType: 'blob',
    data
  })
}

/**
 * 脱敏导出人员信息
 * @param {*} data
 */
export function MaskApi(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/groupActivityRegistration/activityRegistrationUserMaskingExport',
    method: 'post',
    responseType: 'blob',
    data
  })
}

/**
 * 不脱敏导出人员信息
 * @param {*} data
 */
export function NoMaskApi(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/groupActivityRegistration/activityRegistrationUserNoMaskingExport',
    method: 'post',
    responseType: 'blob',
    data
  })
}

